How Compressor works